package com.hy.service;

import com.hy.Result.ResponseResult;
import io.minio.errors.*;
import me.chanjar.weixin.common.error.WxErrorException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Map;

public interface APPUserService {
    //微信授权登录
    ResponseResult wxLogin(Map<String, Object> map) throws WxErrorException;

    //发送验证码
    ResponseResult sendCode(Map<String,Object> map);

    //app用户登录
    ResponseResult login(Map<String, Object> map);

    //用户注册
    ResponseResult register(Map<String, Object> map);

    //上传头像接口
    ResponseResult<?> uploadAvatar(MultipartFile file) throws IOException, ServerException, InvalidBucketNameException, InsufficientDataException, ErrorResponseException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

}
